package mapPro.Service.impl;

import java.util.Optional;
import mapPro.Service.MapService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

/**
 * @description: TODO
 * @author: Sarah
 * @modified By: Sarah
 * @date: Created in 2021/9/9 15:13
 * @version:v1.0
 */
@Service
public class MapServiceImpl implements MapService {

    @Autowired
    private RestTemplate restTemplate;


    @Override
    public Optional<String> getCompletedAddress(String address) {
        addressCode(address)


        return null;
    }

    private Optional<> addressCode(String address) {
        restTemplate.getForEntity("https://restapi.amap.com/v3/geocode/geo",)
    }
}
